/**
 * 
 */
package com.planner.core.service.rest.vo;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author gautasa
 *
 */
@XmlRootElement(name="stop")
@XmlAccessorType(XmlAccessType.FIELD)
public class Stop implements Comparable<Stop>{
	@XmlAttribute(name="value")
	private long id;
	
	@XmlAttribute(name="label")
	private String name;
	
	public Stop(){
		super();
	}
	public Stop(long id, String name){
		super();
		this.id = id;
		this.name = name;
	}
	
	public long getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public int compareTo(Stop other) {
		return this.getName().compareTo(other.getName());
	}
}
